package config

import "path"

type appConfig struct {
	AppPort         int
	UserSessionName string
	UploadPath      string
	UploadImageExt  map[string]string
	UploadVideoExt  map[string]string
	UploadMusicExt  map[string]string
}

var AppConfig = &appConfig{
	AppPort:         8888,
	UserSessionName: "user_id",
	UploadPath:      path.Join("uploads"),
	UploadImageExt: map[string]string{
		"jpg":  "image/jpg",
		"jpeg": "image/jpeg",
		"png":  "image/png",
		"gif":  "image/gif",
	},
	UploadVideoExt: map[string]string{
		"mp4": "video/mp4",
	},
	UploadMusicExt: map[string]string{
		"mp3": "audio/mpeg",
	},
}
